package com.ruoyi.databases.service.impl;

import com.ruoyi.databases.mapper.DatabaseMapper;
import com.ruoyi.databases.pojo.DatabaseVO;
import com.ruoyi.databases.pojo.DynamicSQL;
import com.ruoyi.databases.service.DatabaseService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class DatabaseServiceImpl implements DatabaseService {

    @Resource
    private DatabaseMapper databaseMapper;
    @Override
    public List<DatabaseVO> selectList() {
        return databaseMapper.selectList();
    }

    @Override
    public void addDatabase(DynamicSQL dynamicSQL) {
        databaseMapper.addDatabase(dynamicSQL);
    }
}
